Optimal. Leaf size=268 \[ -\frac {b f p q \log (e+f x)}{(f i-e j) (h i-g j)}+\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(h i-g j) (i+j x)}+\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{(h i-g j)^2}+\frac {b f p q \log (i+j x)}{(f i-e j) (h i-g j)}-\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (i+j x)}{f i-e j}\right )}{(h i-g j)^2}+\frac {b h p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{(h i-g j)^2}-\frac {b h p q \text {Li}_2\left (-\frac {j (e+f x)}{f i-e j}\right )}{(h i-g j)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.40, antiderivative size = 268, normalized size of antiderivative = 1.00, number of steps
used = 13, number of rules used = 8, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.242, Rules used = {2465, 2441,
2440, 2438, 2442, 36, 31, 2495} \begin {gather*} \frac {b h p q \text {PolyLog}\left (2,-\frac {h (e+f x)}{f g-e h}\right )}{(h i-g j)^2}-\frac {b h p q \text {PolyLog}\left (2,-\frac {j (e+f x)}{f i-e j}\right )}{(h i-g j)^2}+\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(i+j x) (h i-g j)}+\frac {h \log \left (\frac {f (g+h x)}{f g-e h}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac {h \log \left (\frac {f (i+j x)}{f i-e j}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{(h i-g j)^2}-\frac {b f p q \log (e+f x)}{(f i-e j) (h i-g j)}+\frac {b f p q \log (i+j x)}{(f i-e j) (h i-g j)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 36
Rule 2438
Rule 2440
Rule 2441
Rule 2442
Rule 2465
Rule 2495
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x) (528+j x)^2} \, dx &=\text {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x) (528+j x)^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\int \left (\frac {h^2 \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j)^2 (g+h x)}-\frac {j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j) (528+j x)^2}-\frac {h j \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{(528 h-g j)^2 (528+j x)}\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\text {Subst}\left (\frac {h^2 \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{g+h x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(h j) \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{528+j x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {j \int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(528+j x)^2} \, dx}{528 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}-\text {Subst}\left (\frac {(b f h p q) \int \frac {\log \left (\frac {f (g+h x)}{f g-e h}\right )}{e+f x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b f h p q) \int \frac {\log \left (\frac {f (528+j x)}{528 f-e j}\right )}{e+f x} \, dx}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(b f p q) \int \frac {1}{(e+f x) (528+j x)} \, dx}{528 h-g j},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}-\text {Subst}\left (\frac {(b h p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {h x}{f g-e h}\right )}{x} \, dx,x,e+f x\right )}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b h p q) \text {Subst}\left (\int \frac {\log \left (1+\frac {j x}{528 f-e j}\right )}{x} \, dx,x,e+f x\right )}{(528 h-g j)^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left (b f^2 p q\right ) \int \frac {1}{e+f x} \, dx}{(528 f-e j) (528 h-g j)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {(b f j p q) \int \frac {1}{528+j x} \, dx}{(528 f-e j) (528 h-g j)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {b f p q \log (e+f x)}{(528 f-e j) (528 h-g j)}+\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(528 h-g j) (528+j x)}+\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (g+h x)}{f g-e h}\right )}{(528 h-g j)^2}+\frac {b f p q \log (528+j x)}{(528 f-e j) (528 h-g j)}-\frac {h \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \log \left (\frac {f (528+j x)}{528 f-e j}\right )}{(528 h-g j)^2}+\frac {b h p q \text {Li}_2\left (-\frac {h (e+f x)}{f g-e h}\right )}{(528 h-g j)^2}-\frac {b h p q \text {Li}_2\left (-\frac {j (e+f x)}{528 f-e j}\right )}{(528 h-g j)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.21, size = 527, normalized size = 1.97 \begin {gather*} \frac {a (f i-e j) (h i-g j)-b (f i-e j) (h i-g j) p q \log (e+f x)+b e j (-h i+g j) p q \log (e+f x)+b f j (-h i+g j) p q x \log (e+f x)+b (f i-e j) (h i-g j) \log \left (c \left (d (e+f x)^p\right )^q\right )+a h (f i-e j) (i+j x) \log (g+h x)-b h (f i-e j) p q (i+j x) \log (e+f x) \log (g+h x)+b h (f i-e j) (i+j x) \log \left (c \left (d (e+f x)^p\right )^q\right ) \log (g+h x)+b h (f i-e j) p q (i+j x) \log (e+f x) \log \left (\frac {f (g+h x)}{f g-e h}\right )+b f i (h i-g j) p q \log (i+j x)+b f j (h i-g j) p q x \log (i+j x)-a h (f i-e j) (i+j x) \log (i+j x)+b h (f i-e j) p q (i+j x) \log (e+f x) \log (i+j x)-b h (f i-e j) (i+j x) \log \left (c \left (d (e+f x)^p\right )^q\right ) \log (i+j x)-b h (f i-e j) p q (i+j x) \log (e+f x) \log \left (\frac {f (i+j x)}{f i-e j}\right )+b h (f i-e j) p q (i+j x) \text {Li}_2\left (\frac {h (e+f x)}{-f g+e h}\right )-b h (f i-e j) p q (i+j x) \text {Li}_2\left (\frac {j (e+f x)}{-f i+e j}\right )}{(f i-e j) (h i-g j)^2 (i+j x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.33, size = 0, normalized size = 0.00 \[\int \frac {a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )}{\left (h x +g \right ) \left (j x +i \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \log {\left (c \left (d \left (e + f x\right )^{p}\right )^{q} \right )}}{\left (g + h x\right ) \left (i + j x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{\left (g+h\,x\right )\,{\left (i+j\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________